﻿namespace Core
{
    /// <summary>
    /// 仅改变一次属性的buff
    /// </summary>
    [Buff]
    public class AddAttributeBuff : BuffSystem
    {
        protected override void OnAwake()
        {
            int.TryParse(config.param1, out var valueName);
            long.TryParse(config.param2, out var value);
            target.GetComponent<NumericComponent>()[valueName] += value;
            this.Dispose();
        }
    }
}